import QtQuick 1.1
import com.nokia.symbian 1.1

SelectionDialog {
    id: root

    signal backgroundColor(string color)

    Component.onCompleted: {
        colorModel.append({modelData:qsTr("White"), color: "white"})
        colorModel.append({modelData:qsTr("Black"), color: "Black"})
        colorModel.append({modelData:qsTr("Red"), color: "red"})
        colorModel.append({modelData:qsTr("Yellow"), color: "yellow"})
        colorModel.append({modelData:qsTr("Steel blue"), color: "steelblue"})
        colorModel.append({modelData:qsTr("Light gray"), color: "lightgray"})
    }

    titleText: qsTr("Background color of image")
    model: ListModel{
        id: colorModel
    }

    onSelectedIndexChanged: {
        root.backgroundColor(model.get(selectedIndex).color)
    }

}

